CLSANDSLEEP macro
    invoke system,offset SLEEP
    invoke system,offset CLS
endm

exchange macro
    LOCAL L
    MOV ECX,5
L:
    MOV EAX,[EDI+ECX*4-4]
    XCHG EAX,[ESI+ECX*4-4]
    MOV [EDI+ECX*4-4],EAX
    LOOP L
    ADD EDI,20
    INC M
endm

extern lpFmt:sbyte,lpFmt1:sbyte,lpFmt3:sbyte
extern SLEEP:sbyte,CLS:sbyte
extern INTERSELLGOODINFO:sbyte,INTERSELLGOODNUMINFO:sbyte,
       INTERSELLGOODNUM:sbyte,SPACEPRO:sbyte,
       LACKOFGOOD:sbyte,RIGHTSELL:sbyte,SORTGOODPROFILE:sbyte
extern INTERGOODINFO:sbyte,INGOOD:sbyte
extern M:sbyte,NUM:sbyte
extern RIGHT:sbyte
extern GA1:sbyte
.DATA
GOODS  STRUCT
GOODSNAME  db 10 DUP(0)
BUYPRICE   DW  0
SELLPRICE  DW  0
BUYNUM     DW  0
SELLNUM    DW  0
RATE       DW  0
GOODS  ENDS

N equ 30


